<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Welcome extends baseController {
    
    public function loadView($temp) {
        if (!isset($temp['data']))
            $temp['data'] = '';
        $this->load->view('template', $temp);
    }
    
	public function index()
	{
        //$this->output->cache(false);
        $this->output->clearCache();
        $this->session->set_userdata('selectedMenu', 'home');
        $this->_data["template"] = 'index';
        $this->_data['parents'] = $this->servicesModel->get_by(array('parentId' => 0, 'languageCode' => $this->session->userdata('languageCode')));
        $this->loadView($this->_data);
	}
}